package com.spic.business.hidden.type.domain;

import com.spic.business.hidden.place.domain.HiddenPlace;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;


/**
 * 隐患类型对象 hidden_type
 *
 * @author qishaoping
 * @date 2021-10-17
 */
public class HiddenType
{
    private static final long serialVersionUID = 1L;

    /** id主键 */
    @Excel(name = "id主键")
    private String id;
    private String parentId;


    /** 隐患类型名称 */
    @Excel(name = "隐患类型名称")
    private String hiddenTypeName;

    /** 子部门 */
    private List<HiddenType> children = new ArrayList<HiddenType>();


    public String getParentId() {
        return parentId;
    }


    public void setParentId(String parentId) {
        this.parentId = parentId;
    }


    public List<HiddenType> getChildren() {
        return children;
    }

    public void setChildren(List<HiddenType> children) {
        this.children = children;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setHiddenTypeName(String hiddenTypeName)
    {
        this.hiddenTypeName = hiddenTypeName;
    }

    public String getHiddenTypeName()
    {
        return hiddenTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("hiddenTypeName", getHiddenTypeName())
            .toString();
    }

}
